package com.qdc.datacenters.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qdc.datacenters.domain.entity.SysDept;
import com.qdc.datacenters.domain.query.dept.SysDeptQuery;
import com.qdc.datacenters.domain.vo.dept.SysDeptVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 部门信息表(SysDept)表数据库访问层
 *
 * @author danmo
 * @since 2024-02-26 17:31:45
 */
@Repository()
@Mapper
public interface SysDeptMapper extends BaseMapper<SysDept> {

    List<SysDept> getList(SysDeptQuery query);

    List<SysDeptVo> getDeptByUserId(@Param("userId") Long userId);
}

